/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.client2server;

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;
import java.util.List;

/**
 *
 * @author dragon
 */
public class SelectPageData {
    public static byte[] EnCode(SelectPageData msg) throws IOException{
        Codec<SelectPageData> Lcode = ProtobufProxy.create(SelectPageData.class);
        return Lcode.encode(msg);
    }
    public static SelectPageData DeCode(byte[] data) throws IOException{
        Codec<SelectPageData> Lcode = ProtobufProxy.create(SelectPageData.class);
        return Lcode.decode(data);
        
    }
    @Protobuf
    private int startIndex;
    @Protobuf
    private int maxResult;
    @Protobuf
    private String sQL;//sql
    @Protobuf
    private int flag;//数据单元

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getMaxResult() {
        return maxResult;
    }

    public void setMaxResult(int maxResult) {
        this.maxResult = maxResult;
    }

    public String getsQL() {
        return sQL;
    }

    public void setsQL(String sQL) {
        this.sQL = sQL;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }
}
